extends Control


func _ready() -> void:
	var rect =TextureRect.new()
	rect.texture = load("res://icon.svg")
	rect.anchor_left = 0.5
	rect.anchor_right = 0.5
	rect.anchor_bottom = 0.5
	rect.anchor_top = 0.5
	
	var texture_size = rect.texture.get_size()
	rect.offset_left = -texture_size.x / 2
	rect.offset_right = texture_size.x / 2
	rect.offset_bottom = texture_size.y / 2	
	rect.offset_top = -texture_size.y / 2 
	add_child(rect)
